import org.apache.lucene.index.IndexWriter;

public class Examples {
    public static final Coordinate SCHWAMMENDINGEN_8051 = new Coordinate(47.4008593, 8.5781373, "Schwammedingen");
    public static final Coordinate SEEBACH_8052 = new Coordinate(47.4232860, 8.5422655, "Seebach");
    public static final Coordinate KNONAU_8934 = new Coordinate(47.2237640, 8.4611790, "Knonau");
    public static final Coordinate ZUERICH_8000 = new Coordinate(47.3690239, 8.5380326, "Zürich in 8000");
    public static final Coordinate EBIKON_6030_6031 = new Coordinate(47.0819237, 8.3415740, "Ebikon");
    public static final Coordinate ADLISWIL_8134 = new Coordinate(47.3119892, 8.5256064, "Adliswil");
    public static final Coordinate BAAR_6341 = new Coordinate(47.1934110, 8.5230670, "Baar");

    public static void createExampleLocations(final IndexWriter w)
        throws Exception {
//        final SpatialHelper s = new SpatialHelper(10.0d, 20.0d);
//        s.addLoc(w, EBIKON_6030_6031.getName(), EBIKON_6030_6031);
//        s.addLoc(w, SEEBACH_8052.getName(), SEEBACH_8052);
//        // uncomment these lines to generate 10'000 locations near by Zuerich
//        // for (int i = 0; i &lt; 10000; i++) {
//        // s.addLoc(w, &quot;Zürich_&quot; + i, new Coordinate(ZUERICH_8000.getLat() + i /
//        // 100000D, ZUERICH_8000.getLon() + i
//        // / 100000D));
//        // }
//        s.addLoc(w, ZUERICH_8000.getName(), ZUERICH_8000);
//        s.addLoc(w, SCHWAMMENDINGEN_8051.getName(), SCHWAMMENDINGEN_8051);
//        s.addLoc(w, ADLISWIL_8134.getName(), ADLISWIL_8134);
//        s.addLoc(w, KNONAU_8934.getName(), KNONAU_8934);
//        s.addLoc(w, BAAR_6341.getName(), BAAR_6341);
    }
}
